home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 February: Technology Seed / Mac Tech Seed Feb '97.toast / ODF Release 3 / ODFDev / Draw / Sources / Defines.k < prev    next >
Encoding:
Text File  |  1996-12-16  |  5.9 KB  |  188 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                Defines.k
  4. //    Release Version:    $ ODF 3 $
  5. //
  6. //    Author:                Henri Lamiraux
  7. //
  8. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  9. //
  10. //========================================================================================
  11.  
  12. #ifndef DEFINES_K
  13. #define DEFINES_K
  14.  
  15. #ifndef FWMENUS_K
  16. #include "FWMenus.k"
  17. #endif
  18.  
  19. //-------------------------------------------------------------------------------------
  20. // Uncomment the following three lines, and define them appropriately!!
  21. // If your part can be a container for other parts, define FW_SUPPORTS_EMBEDDING
  22. // to be 1.  Otherwise define it to be 0.
  23. // If your part defines any ODExtensions, define FW_SUPPORTS_EXTENSIONS to be
  24. // 1 to enable the extensions manager.  Otherwise, define it to be 0.
  25. // If your part is scriptable, define FW_SUPPORTS_SCRIPTING to be 1. Otherwise,
  26. // define it to be zero.  Note that if your part is scriptable is must support
  27. // extensions, so FW_SUPPORTS_EXTENSIONS must be defined to be 1.
  28.  
  29. #define FW_SUPPORTS_EMBEDDING     1
  30. #define FW_SUPPORTS_EXTENSIONS     1
  31. #define FW_SUPPORTS_SCRIPTING     1
  32. #define FW_SUPPORTS_LINKING     1
  33.  
  34. //-------------------------------------------------------------------------------------
  35. // Icons ID
  36. #define kViewAsIconID            1128
  37. #define kAboutIconID            1130
  38.  
  39. //-------------------------------------------------------------------------------------
  40. // Frame Presentations
  41. #define kMainPresentation            "Apple:Presentation:DrawPart:Main"
  42. #define kPalettePresentation        "Apple:Presentation:DrawPart:Palette"
  43. #define kPatternPresentation        "Apple:Presentation:DrawPart:Pattern"
  44. #define kToolPresentation            "Apple:Presentation:DrawPart:Tool"
  45. #define kPrintPresentation            "Apple:Presentation:DrawPart:Print"
  46. #define kRoundCornersPresentation    "Apple:Presentation:DrawPart:RoundCorners"
  47. #define kAlignObjectsPresentation    "Apple:Presentation:DrawPart:AlignObjects"
  48.  
  49. //-------------------------------------------------------------------------------------
  50. // Types
  51. #define kPublishFormat        "Apple:Publish:Draw"
  52. #define kSubscribeFormat    "Apple:Subscribe:Draw"
  53.  
  54. //-------------------------------------------------------------------------------------
  55. // About
  56. #define kAbout                1200
  57.  
  58. //-------------------------------------------------------------------------------------
  59. // Menus
  60. #define kMenuBar            1200
  61.  
  62. #define cMoveForward        FW_kFirstUserCommandID
  63. #define cMoveToFront         cMoveForward + 1
  64. #define cMoveBackward        cMoveToFront + 1
  65. #define cMoveToBack          cMoveBackward + 1
  66. #define cAlignToGrid         cMoveToBack + 1
  67. #define cAlignObjects         cAlignToGrid + 1
  68. #define cRotate              cAlignObjects + 1
  69. #define cFlipH                  cRotate + 1
  70. #define cFlipV                  cFlipH + 1
  71. #define cGroup                  cFlipV + 1
  72. #define cUngroup              cGroup + 1
  73. #define cLock                  cUngroup + 1
  74. #define cUnlock              cLock + 1
  75.  
  76. #define cPen1                  cUnlock + 1
  77. #define cPen2                  cPen1+1
  78. #define cPen3                  cPen2+1
  79. #define cPen4                  cPen3+1
  80. #define cPen5                  cPen4+1
  81.  
  82. #define cGraphicsGrid         cPen5 + 1
  83. #define cRulers                 cGraphicsGrid + 1
  84. #define cAutoGrid             cRulers + 1
  85. #define cScaleSelection        cAutoGrid + 1
  86. #define cRoundCorners         cScaleSelection + 1
  87.  
  88. #define cAsFrame            cRoundCorners + 1
  89. #define cAsLargeIcon        cAsFrame + 1
  90. #define cAsSmallIcon        cAsLargeIcon + 1
  91. #define cAsThumbnail         cAsSmallIcon + 1
  92.  
  93. #define cZoom50                cAsThumbnail + 1
  94. #define cZoom100             cZoom50 + 1
  95. #define cZoom200             cZoom100 + 1
  96.  
  97. #define cInchUnit             cZoom200 + 1
  98. #define cCmUnit                 cInchUnit + 1
  99. #define cPixelUnit            cCmUnit + 1
  100. #define cPicaUnit            cPixelUnit + 1
  101. #define cDegreesUnit        cPicaUnit + 1
  102. #define cRadiansUnit         cDegreesUnit + 1
  103.  
  104. #define cHideShowTools      cRadiansUnit + 1
  105. #define cHideShowPattern    cHideShowTools+1
  106. #define cHideShowPalette    cHideShowPattern+1
  107.  
  108. #define cPages1x1            cHideShowPalette+1
  109. #define cPages2x2            cPages1x1+1
  110. #define cPages3x3            cPages2x2+1
  111.  
  112. #define cDuplicate            cPages3x3 + 1
  113.  
  114. //-------------------------------------------------------------------------------------
  115. // Views
  116. #define kDrawView            1200
  117. #define kDrawViewNotRoot    1201
  118. #define kDrawViewPrinting    1202
  119.  
  120. #define kDrawViewID            2
  121. #define kHorzScrollBarID    3
  122. #define kVertScrollBarID    4 
  123. #define kGrowBoxID             5
  124. #define kHorzRulerID         6
  125. #define kVertRulerID         7
  126.  
  127. //-------------------------------------------------------------------------------------
  128. // Strings
  129. #define kDrawUndoStrings            1200
  130.     #define kUndoFillColorMsg           1
  131.     #define kRedoFillColorMsg           2
  132.     #define kUndoFrameColorMsg           3
  133.     #define kRedoFrameColorMsg           4
  134.     #define kUndoFillPatternMsg           5
  135.     #define kRedoFillPatternMsg           6
  136.     #define kUndoFramePatternMsg       7
  137.     #define kRedoFramePatternMsg       8
  138.     #define kUndoPenSizeMsg               9
  139.     #define kRedoPenSizeMsg              10
  140.     #define kUndoRenderVerbMsg          11
  141.     #define kRedoRenderVerbMsg          12
  142.     #define kUndoDrawingMsg              13
  143.     #define kRedoDrawingMsg              14
  144.     #define kUndoGroupMsg              15
  145.     #define kRedoGroupMsg              16
  146.     #define kUndoUngroupMsg              17
  147.     #define kRedoUngroupMsg              18
  148.     #define kUndoResizeMsg              19
  149.     #define kRedoResizeMsg              20
  150.     #define kUndoDuplicateMsg        21
  151.     #define kRedoDuplicateMsg        22
  152.  
  153. #define kDrawStrings                1201
  154.     #define kDuplicateString        1
  155.  
  156. #define kRoundCornersStrings            1202
  157.     #define    kOffsetErrorString            1
  158.     #define    kRoundCornersTitleString    2
  159.     
  160. //-------------------------------------------------------------------------------------
  161. // Drawing
  162. #define kDrawingSizeX            600
  163. #define kDrawingSizeY            800
  164.  
  165. //-------------------------------------------------------------------------------------
  166. // Part Info 
  167. #define kPartInfoID                1200
  168.  
  169. //-------------------------------------------------------------------------------------
  170. // Notification 
  171. #define    kColorChanged            1000
  172. #define kPatternChanged            1002
  173.  
  174. //-------------------------------------------------------------------------------------
  175. // Dialogs 
  176. #define    kRoundCornersDialog        1300
  177.     #define kDrawOKButtonID        1
  178.     #define kCancelButtonID        2
  179.     #define kRoundEndsID        3
  180.     #define kRadiusID            4
  181.     #define kPointsID            5
  182.  
  183. #define kRoundEndsPressedMsg    1000
  184. #define kRadiusPressedMsg        1001
  185.  
  186. #endif
  187.  
  188.